<%@include file="../context.jsp"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Stock Screener</title>
<%@include file="../common_imports.jsp"%>

</head>
<body>
	<div class="main_wrapper">
		<div class="container-fluid">
			<div class="row-fluid">
				<%@include file="../stockscreener/header.jsp"%>
			</div>
			<div class="row-fluid">
				<div class="main_menu_wrapper span12">
					<div class="navbar">
						<div class="navbar-inner">
							<div class="container">
								<button class="btn btn-navbar collapsed"
									data-target=".nav-collapse" data-toggle="collapse"
									type="button">
									<div class="icon_wrapper"
										style="float: right; padding: 5px 10px;">
										<span class="icon-bar"></span> <span class="icon-bar"></span>
										<span class="icon-bar"></span>
									</div>
								</button>

								<div class="nav-collapse collapse">
									<%@include file="../header_link.jsp"%>
								</div>
							</div>

						</div>
					</div>
				</div>
			</div>
			<div class="row-fluid">
				<div class="main_package">
					<c:forEach var="packageData" items="${packageList}">
						<form:form method="POST"
							action="${pageContext.request.contextPath}/myaccount/confirm.html">
							<div class="package_div">
								<c:set var="widthVar" scope="session"
									value="${100/fn:length(packageList)}" />
								<table class="package_table" width="${widthVar}%">
									<tbody>
										<tr>
											<td><h4>${packageData.name}</h4></td>

										</tr>
										<tr>
											<td>${packageData.duration}</td>

										</tr>
										<tr>
											<td>${packageData.description}</td>

										</tr>
										<tr>
											<td>${packageData.price}</td>
											<input type="hidden" class="id" name="id"
												value="${packageData.id}" />
										</tr>
										<tr>
											<td><input class="btn btn-info" type="submit" /></td>
										</tr>
									</tbody>
								</table>
							</div>
						</form:form>
					</c:forEach>
				</div>
			</div>
			<div class="footer_wrapper">
				<%@include file="../footer.jsp"%>
			</div>
		</div>
	</div>
</body>
</html>
